package com.wejoy.video.middle.station.data.service.overtime;

import com.wejoy.video.middle.station.data.domain.overtime.OvertimePoint;

import java.util.List;

/**
 * 加班点位
 *
 * @author miracle_j
 * @date 2024年04月22日 15:25:48
 */
public interface IOvertimePointService {
    /**
     * 保存或更新
     * @param req
     */
    void save(OvertimePoint req, String operator);

    /**
     * 插入
     *
     * @param overtimePoint overtimePoint
     * @return int
     */
    int insertSelective(OvertimePoint overtimePoint);

    /**
     * 主键更新
     *
     * @param overtimePoint overtimePoint
     * @return int
     */
    int updateSelectiveById(OvertimePoint overtimePoint);

    /**
     * 数量
     *
     * @param overtimePoint overtimePoint
     * @return int
     */
    int getCount(OvertimePoint overtimePoint);

    /**
     * 主键查询
     *
     * @param id id
     * @return OvertimePoint
     */
    OvertimePoint getOneById(Long id);

    /**
     * 多条
     *
     * @param overtimePoint overtimePoint
     * @return List<OvertimePoint>
     */
    List<OvertimePoint> getList(OvertimePoint overtimePoint);

    /**
     * 分页
     *
     * @param overtimePoint overtimePoint
     * @return List<OvertimePoint>
     */
    List<OvertimePoint> getPageList(OvertimePoint overtimePoint);

    /**
     * 审核
     * @param id
     * @param operator
     */
    void audit(Long id, String operator);

    /**
     * 取消审核
     * @param id
     * @param operator
     */
    void unaudit(Long id, String operator);

    /**
     * 删除
     * @param id
     * @param operator
     */
    void delete(Long id, String operator);
}
